package com.czy.daishusys.entity;

/**
 * 回调信息统一封装类
 * Created by wangyang on 2017/4/26.
 */
public class BaseResultEntity<T> {
    //    //  判断标示
    private boolean flag;
    //返回错误码
    private int errorCode;
    //  提示信息
    private String exp;
    private long serverTime;
    //    显示数据（用户需要关心的数据）
    private T data;

    public long getServerTime() {
        return serverTime;
    }

    public void setServerTime(long serverTime) {
        this.serverTime = serverTime;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getExp() {
        return exp;
    }

    public void setExp(String exp) {
        this.exp = exp;
    }

    public T getData() {
        return data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public void setData(T data) {
        this.data = data;
    }
}
